From bbe94b0199a3371544eab7ee62530a8a7f722f02 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Fri, 4 Apr 2008 15:43:01 +0100 Subject: [PATCH] ioemu: advertise write cache feature Signed-off-by: Samuel Thibault --- tools/ioemu/hw/ide.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/ioemu/hw/ide.c b/tools/ioemu/hw/ide.c index c8df301b39..45136bbef3 100644 --- a/tools/ioemu/hw/ide.c +++ b/tools/ioemu/hw/ide.c @@ -655,7 +655,8 @@ static void ide_identify(IDEState *s) put_le16(p + 68, 120); put_le16(p + 80, 0xf0); /* ata3 -> ata6 supported */ put_le16(p + 81, 0x16); /* conforms to ata5 */ - put_le16(p + 82, (1 << 14)); + /* 14=nop 5=write_cache */ + put_le16(p + 82, (1 << 14) | (1 << 5)); /* 13=flush_cache_ext,12=flush_cache,10=lba48 */ put_le16(p + 83, (1 << 14) | (1 << 13) | (1 <<12) | (1 << 10)); put_le16(p + 84, (1 << 14)); -- 2.30.2